<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const n1 = 255;
      console.log(n1.toString(10)); // '100'
      console.log(n1.toString(2));
      console.log(n1.toString(3));
      console.log(n1.toString(8));
      console.log(n1.toString(16));
      console.log(n1.toString(36));
      // 0-1a-z
    </script>
  </body>
</html>
